import { ApiProperty } from '@nestjs/swagger';

export class MenuListVO {
  @ApiProperty({
    description: 'id',
  })
  id: number;

  @ApiProperty({
    description: '父路由的id',
  })
  pid: number;

  @ApiProperty({
    description: '路由名称',
  })
  name: string;

  @ApiProperty({ description: '路由路径' })
  path: string;

  @ApiProperty({ description: '组件路径' })
  component: string;

  @ApiProperty({ description: '可见权限' })
  permission: string;

  @ApiProperty({ description: '是否侧边栏否 (0) 是(1)' })
  isSidebar: number;

  @ApiProperty({ description: '元数据' })
  meta: any;

  @ApiProperty({ description: '创建时间' })
  createdAt: string;
}
